<?php

	if(!empty($_POST['user'])){
	
	session_start();
setcookie('user', $_POST['user'], time() + 365*24*3600, null, null, false, true);
		include_once("choixlangue.php");
	 	 
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	
<meta charset="utf-8" />
		<title>Form</title>
		<link rel="stylesheet" type="text/css" href="../doc.css" />
	</head>
	<body>
	
		<div id="chat">
			<p>Donner votre login </p>
			<form action="form.php" method="post" >
				<fieldset>
					<legend>sign in:</legend>	
					<label for="user">User</label><input type="text" name="user" value="<?php  if(isset($_COOKIE['user'])) echo $_COOKIE['user'] ; ?>" />
					<input type="submit" value="sign in" />
					<input type="reset" value="cancel" />
		
				</fieldset>

			</form>




		</div>

	</body>
</html>









